﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="/static/admin/Css/public.css" rel="stylesheet" type="text/css" />
<title>用户管理</title>
</head>

<body leftmargin="2" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="self.event.returnValue=false">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" class="border">
	<tr class="topbg"><td>用户管理</td></tr>
	<tr class="tdbg">
		<td height="30">&nbsp;&nbsp;
			<a href="{:url('admin/user/index')}">管理首页</a>&nbsp;|&nbsp;
			<a href="{:url('admin/user/add')}">添加用户</a>
		</td>
	</tr>
</table>
<br />
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="border">
	<tr class="title">
		<td align="center">编号</td>
		<td align="center">用户名</td>
		<td align="center">真实姓名</td>
		<td align="center">联系电话</td>
		<td align="center">角色</td>
		<td align="center">最后登录IP</td>
		<td align="center">最后登录时间</td>
		<td align="center">登录总次数</td>
		<td align="center">账号状态</td>
		<td align="center">操作选项</td>
	</tr>
	{foreach $data as $v}
		<tr class="tdbg">
			<td align="center">{$v.id}</td>
			<td align="center">{$v.username}</td>
			<td align="center">{$v.name}</td>
			<td align="center">{$v.tel}</td>
			<td align="center">{$v.role == 1 ? "超级管理员" : "普通管理员"}</td>
			<td align="center">{$Think.server.REMOTE_ADDR}</td>
			<td align="center">{$v.addate|date='y-m-d',###}</td>
			<td align="center">{$v.login_times}</td>
			<td align="center">{$v.status == 1 ? "<font color='green'>正常</font>" : "<font color='red'>异常</font>"}</td>
			<td align="center">
				<a href="{:url('/admin/user/edit',['id' => $v.id])}">修改</a> |
				<a href="javascript:void(0);" onclick="if(confirm('您确定要删除吗？')) location.href = '{:url(\'delete\',[\'id\' => $v.id])}'">删除</a>
			</td>
		</tr>
	{/foreach}
</table>
</body>
</html>
